﻿using AutoMapper;
using B.S.GridManage.Api.Read.Dtos;
using B.S.GridManage.Domain.Entities;

namespace B.S.GridManage.Api.Read
{
    /// <summary>
    /// automapper映射
    /// </summary>
    public class AutoMaperProfile : Profile
    {
        public AutoMaperProfile()
        {
            //把Dto转换为Model ,反过来也支持
            CreateMap<AreaTreeDto, AreaModel>().ReverseMap();//反转
            CreateMap<PhysicallGridModel, CopyPhysicalGridDto>().ReverseMap();//反转
        }
    }
}
